<template>
	<view>
		<view class="list" v-for="(item,index) in comlist" :key="index">
			<span>{{item.agentName}}</span>
			<span>{{item.donateNum}}积分</span>
		</view>
		<emptyPage v-if="comlist.length == 0" title="暂无记录～"></emptyPage>
		
	</view>
</template>

<script>
	import {benefitActivityrecordList} from '@/api/api.js';
	import emptyPage from '@/components/emptyPage.vue'
	export default {
		components: {
			emptyPage
		},
		data() {
			return {
				comlist:[]
			};
		},
		onShow() {
			this.getData()
		},
		methods: {
			getData(){
			
				benefitActivityrecordList().then(res=>{
					console.log('列表')
					console.log(res)
					this.comlist = res.data.list
				})
			},

		}
	};
</script>

<style>
	page {
		background-color: #fff !important;
	}
</style>
<style lang="scss" scoped>
	.list{
		height: 100rpx;
		border-bottom: 1px solid #ccc;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding:0 30rpx;
	}
</style>